package cn.dgut.jy.soro.repository;

import cn.dgut.jy.soro.entity.Cart;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface CartRepository extends JpaRepository<Cart, Integer>,
        JpaSpecificationExecutor<Cart> {

    Cart findByUserId(Integer userId);
}
